#include "emcy_task.h"
TaskHandle_t emcyTask_Handler;      //任务句柄

/**
 * @brief 紧急任务
 * 
 * @param pvParameters 
 */
void emcy_task(void *pvParameters)
{
	static float float_num=0.00f;
	while(1)
	{
		float_num+=0.01f;
		
		taskENTER_CRITICAL();
		
		// SEGGER_RTT_printf(0, "value = %d in led0_task\n", g_shared_value);
		taskEXIT_CRITICAL();
		
		//SEGGER_RTT_printf(0, "sys tick = %d\n", xTaskGetTickCount());
        // ledStatusErrTest();
    	vTaskDelay(1000);			//休眠,事件触发时再唤醒
    	// vTaskDelay(portMAX_DELAY);			//休眠,事件触发时再唤醒
	}
}
